#include <opencv2/opencv.hpp>
#include <opencv2/saliency.hpp>

using namespace std;
using namespace cv;

int main()
{
	Mat img_src = imread("./img/1.jpg");
	Mat img_dst_1(img_src.size(), CV_32FC1, Scalar(1.0f));
	Mat img_dst_2(img_src.size(), CV_32FC1, Scalar(1.0f));

	//cv::Ptr<cv::saliency::Saliency> saliencyAlgorithm;
	//saliencyAlgorithm = cv::saliency::StaticSaliencySpectralResidual::create();


	saliency::StaticSaliencySpectralResidual saliencyAlgorithm_1;
	saliencyAlgorithm_1.computeSaliency(img_src, img_dst_1);

	saliency::StaticSaliencyFineGrained saliencyAlgorithm_2;
	saliencyAlgorithm_2.computeSaliency(img_src, img_dst_2);

	imshow("StaticSaliencySpectralResidual", img_dst_1);
	imshow("StaticSaliencyFineGrained", img_dst_2);

	waitKey(0);
	return 0;
}
